import { createRouter, createWebHistory } from 'vue-router';
import Home from '../views/Home.vue';

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
  },
  // 后续可以在这里添加其他页面的路由
  // 例如：
  {
    path: '/record',
    name: 'RecordEntry',
    component: () => import('../views/RecordEntry.vue') // 懒加载
  },
  {
    path: '/settings',
    name: 'ParentSettings',
    component: () => import('../views/ParentSettings.vue')
  },
  {
    path: '/databoard',
    name: 'DataBoard',
    component: () => import('../views/DataBoard.vue')
  },
  {
    path: '/achievements',
    name: 'AchievementWall',
    component: () => import('../views/AchievementWall.vue')
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;